package ModelLayer;
import java.util.ArrayList;
import java.util.Iterator;

/**
 * Write a description of class LoanCon here.
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */
public class LoanCon
{
    private static LoanCon instance = new LoanCon();
    private ArrayList <Loan> loans;
    /**
     * Constructor for objects of class LoanCon
     */
    private LoanCon(){
        if(loans == null) loans = new ArrayList<Loan>();
    }

    public static LoanCon getInstance(){
        return instance;
    }

    public ArrayList<Loan> get(){
        return loans;
    }

    public void set(ArrayList<Loan> newLoan){
        loans = newLoan;
    }

    public void add(Loan loan){
        loans.add(loan);
    }
}
